/*
 * IC Project - a prototype to test a hypothesis of collective intelligence
 * Copyright (C) 2012 Paolo Conte - paolo@concavi.net
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.ix.utils;

public class HTMLFragments {

    public static String head(String appName, String title) {
        return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"
                + "<title>" + title + "</title>\n"
                + "<link rel=\"stylesheet\" href=\"" + appName + "/static/css/ix.css\" />\n"
                + "<script type=\"text/javascript\" src=\"" + appName + "/static/script/ix.js\"></script>\n"
                + "<script type=\"text/javascript\" src=\"" + appName + "/static/script/ajax.js\"></script>\n"
                + "<script type=\"text/javascript\" src=\"" + appName + "/static/script/jsonreport.js\"></script>\n"
                + "</head><body>\n";
    }
}
